<?php

// +----------------------------------------------------------------------
// | 星数 [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2020~2021 http://xsframe.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: guiHai <786824455@qq.com>
// +----------------------------------------------------------------------

namespace app\xs_article\controller;

use xsframe\base\BaseController;

class Index extends BaseController
{
    // 自定义应用默认访问入口
    public function index()
    {
        $isMobile = is_mobile();

        if ($isMobile) {
            $this->runMobile();
        } else {
            return redirect(webUrl('article.index/main'));
        }
    }
}